<?php 
$quotes = $this->Session->read('Quotes');
if (empty($quotes)){
  $quotes = $this->requestAction(array('controller'=>'Data', 'action'=>'quotes'));
} ?>

<div id="header">
  <div id="header-logo"></div>
  <div id="header-quote">
    <?php if(!empty($quotes)) {
    $index = array_rand($quotes,1);
    $quote = $quotes[$index]['Quote'];
    ?>
    <span id="header-quote-text"><span class="quotes">"  </span><?php echo $quote['quote'];?><span class="quotes">  "</span></span>
    <span id="header-quote-author"><?php if (!empty($quote['author'])) { echo '~'.$quote['author'] . '~';} ?></span>
    <?php } ?>
  </div>
</div>